<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a href="/crm/supervision/org">商户监管</a></li>
		<li><a href="/crm/supervision/material">溯源监管</a></li>
		<li><a href="/crm/supervision/org-goods">餐品监管</a></li>
		<li><a href="/crm/supervision/order">订单监管</a></li>
		<li><a href="/crm/supervision/school?catalog_id=17">校园配餐监管</a></li>
		<li><a href="/crm/supervision/hospital?catalog_id=18">医院配餐监管</a></li>
		<li><a class="on" href="/crm/supervision/enterprise?catalog_id=19">企业配餐监管</a></li>
		<li><a href="/crm/supervision/administrative?catalog_id=20">机关配餐监管</a></li>
		
	</ul>
</div>
<div class="main-ct w1180">
<div id="list-table"></div>
</div>
			
<script type="text/javascript">
var catalogType = "<?php echo isset($_GET['catalog_id']) ? $_GET['catalog_id'] : 0;?>";
    $(document).ready(function(){
    	ajaxListTable();
    });
    
    var page = 1;
    function paginator(page_no) {
    	page = page_no;
    	ajaxListTable();
    }
    
    function ajaxListTable(){
    	$.ajax({
            type: "post",
            url: "<?php echo $this->url('crm/supervision',
                array('action'=>'ajax-common-order-list'));?>",
            dataType:'html',
            data: { 
            	"catalog_id": catalogType,
    				"page":page
    		},
            cache: false,
            timeout:10000, 
            error: function(){
              	 alert('请求超时，请重新操作');
               	 isPost = false;
                 return false; 
             }, 
            success: function(html){
            	$("#list-table").html(html);
            }
        });
    }


    $('body').on('click' , '.common-order-show' , function(){ 
        var order_id = $(this).data('order_id');
        $("#comm_show_"+order_id).slideToggle(200);

        $.get("/crm/supervision/ajax-common-order-goods-list",{'order_id':order_id},function(res){

    		$("#comm_show_"+order_id).html(res);	
    	});

    }); 
//     $('body').on('click' , '.addr-show' , function(){ 
//         var org_id = $(this).data('org-id');
//         $("#comm_show_"+org_id).slideToggle(200);

//         $.get("/crm/org/ajax-address-list",{'org_id':org_id},function(res){

//     		$("#comm_show_"+org_id).html(res);	
//     	});

//        //$("#address-list-show").treetable();
    
//     }); 


</script>